package com.icm.webServices;

public class SmartICMv2WebServiceProxy implements com.icm.webServices.SmartICMv2WebService_PortType {
  private String _endpoint = null;
  private com.icm.webServices.SmartICMv2WebService_PortType smartICMv2WebService_PortType = null;
  
  public SmartICMv2WebServiceProxy() {
    _initSmartICMv2WebServiceProxy();
  }
  
  public SmartICMv2WebServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initSmartICMv2WebServiceProxy();
  }
  
  private void _initSmartICMv2WebServiceProxy() {
    try {
      smartICMv2WebService_PortType = (new com.icm.webServices.SmartICMv2WebService_ServiceLocator()).getSmartICMv2WebServicePort();
      if (smartICMv2WebService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)smartICMv2WebService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)smartICMv2WebService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (smartICMv2WebService_PortType != null)
      ((javax.xml.rpc.Stub)smartICMv2WebService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.icm.webServices.SmartICMv2WebService_PortType getSmartICMv2WebService_PortType() {
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType;
  }
  
  public java.lang.String sendFile(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String gateway_id, java.lang.String fileName, byte[] content) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.sendFile(usu_clave, usu_password, gateway_id, fileName, content);
  }
  
  public java.lang.String sendSMS(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String gateway_id, java.lang.String tel_numero, java.lang.String outbox_txt, java.lang.String fecha_envio, java.lang.String hora_envio) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.sendSMS(usu_clave, usu_password, gateway_id, tel_numero, outbox_txt, fecha_envio, hora_envio);
  }
  
  public java.lang.String getACK(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String outbox_id) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.getACK(usu_clave, usu_password, outbox_id);
  }
  
  public java.lang.String getDELIVERY(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String outbox_telefono, java.lang.String outbox_conf) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.getDELIVERY(usu_clave, usu_password, outbox_telefono, outbox_conf);
  }
  
  public java.lang.String getPhoneType(java.lang.String phoneNumber) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.getPhoneType(phoneNumber);
  }
  
  public java.lang.String encodeMessage(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String phoneNumber, java.lang.String message) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.encodeMessage(usu_clave, usu_password, phoneNumber, message);
  }
  
  public java.lang.String decodeMessage(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String phoneNumber, java.lang.String encodedMessage) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.decodeMessage(usu_clave, usu_password, phoneNumber, encodedMessage);
  }
  
  public java.lang.String enableSMSEncription(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String passPhrase) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.enableSMSEncription(usu_clave, usu_password, passPhrase);
  }
  
  public java.lang.String disableSMSEncription(java.lang.String usu_clave, java.lang.String usu_password) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.disableSMSEncription(usu_clave, usu_password);
  }
  
  public java.lang.String getCurrentBalance(java.lang.String usu_clave, java.lang.String usu_password) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.getCurrentBalance(usu_clave, usu_password);
  }
  
  public java.lang.String addKeyword(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String keyword_id, java.lang.String keyword_id_sup) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.addKeyword(usu_clave, usu_password, keyword_id, keyword_id_sup);
  }
  
  public java.lang.String deleteKeyword(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String keyword_id, java.lang.String keyword_id_sup) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.deleteKeyword(usu_clave, usu_password, keyword_id, keyword_id_sup);
  }
  
  public java.lang.String addAction(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String keyword_id, java.lang.String keyword_id_sup, java.lang.String actionType, java.lang.String actionTxt, java.lang.String actionAutoResponse, java.lang.String actionUrl) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.addAction(usu_clave, usu_password, keyword_id, keyword_id_sup, actionType, actionTxt, actionAutoResponse, actionUrl);
  }
  
  public java.lang.String updateAction(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String keyword_id, java.lang.String keyword_id_sup, java.lang.String actionType, java.lang.String actionTxt, java.lang.String actionAutoResponse, java.lang.String actionUrl) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.updateAction(usu_clave, usu_password, keyword_id, keyword_id_sup, actionType, actionTxt, actionAutoResponse, actionUrl);
  }
  
  public java.lang.String addClient(java.lang.String usu_clave, java.lang.String usu_password, java.lang.String cli_razon_social, java.lang.String cli_rfc, java.lang.String cli_keyword, java.lang.String cli_web, java.lang.String cli_conmutador, java.lang.String usu_titulo, java.lang.String usu_nombre, java.lang.String usu_apepat, java.lang.String usu_apemat, java.lang.String usu_telefono, java.lang.String usu_movil, java.lang.String usu_email, java.lang.String usu_clave_register, java.lang.String usu_password_register, java.lang.String usu_password2_register) throws java.rmi.RemoteException{
    if (smartICMv2WebService_PortType == null)
      _initSmartICMv2WebServiceProxy();
    return smartICMv2WebService_PortType.addClient(usu_clave, usu_password, cli_razon_social, cli_rfc, cli_keyword, cli_web, cli_conmutador, usu_titulo, usu_nombre, usu_apepat, usu_apemat, usu_telefono, usu_movil, usu_email, usu_clave_register, usu_password_register, usu_password2_register);
  }
  
  
}